package com.sm.user.web.root;

import com.sm.user.facade.UserFacade;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: UserController
 * @Description: TODO
 * @Author: huc
 * @Date: 2020/11/13 12:00
 * @Version: v1.0
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @DubboReference
    private UserFacade userFacade;

    @GetMapping("/")
    public String getUserInfo(){
        return userFacade.getUserInfo();
    }

}
